//
//  TimerCallback.m
//  Stock
//
//  Created by blacksun on 11-6-24.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "TimerCallback.h"


@implementation TimerCallback
@synthesize target;
@synthesize action;

-(void)task{
    [target performSelector:action];
}

-(id)init{
    return [self initWithTarget:nil action:nil];
}
-(id)initWithTarget:(id)aTarget action:(SEL)aAction{
    self = [super init];
    if (self) {
        self.target = aTarget;
        self.action = aAction;
        return self;
    }
    return nil;
}
@end
